#ifndef TITLEBARABSTRACT_H
#define TITLEBARABSTRACT_H

#include <QWidget>
#include <QPixmap>

class TitleBarAbstract : public QWidget
{
	Q_OBJECT

	QPixmap* _cacheImage;

public:
	explicit TitleBarAbstract(QWidget *parent = 0);
	~TitleBarAbstract();

protected:
	void resizeEvent(QResizeEvent *event);
	void paintEvent (QPaintEvent  *event);
	void mouseDoubleClickEvent(QMouseEvent *event);

	virtual void paintHeader(QPainter* painter);

signals:
	void close();
	void maximize();
	void minimize();
	void normalize();
};

#endif // TITLEBARABSTRACT_H
